package edu.jamestang.yeb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.jamestang.yeb.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author JamesTang
 * @date 2021/12/14 16:05
 */

@Mapper
public interface RoleMapper extends BaseMapper<Role> {


    /**
     * get current user's role list
     * @param adminId admin id
     * @return role list
     */
    List<Role> getRoles(Integer adminId);
}
